import { Entity, PrimaryColumn } from 'typeorm';

@Entity('sys_role_perm', {
  comment: '身份权限关联表',
})
export class RoleWidthPermEntity {
  @PrimaryColumn({ type: 'int', name: 'role_id', comment: '身份ID' })
  roleId: number;

  @PrimaryColumn({ type: 'int', name: 'perm_id', comment: '权限ID' })
  permId: number;
}
